package com.secxiot.provider.task.entity;

import java.io.Serializable;
import java.util.Date;

public class TaskTime implements Serializable {
    private Long id;

    /**
     * 任务id
     */
    private Long taskId;

    /**
     * 任务时间类型，字典
     */
    private String timeType;

    /**
     * 任务时间戳
     */
    private Long taskTime;

    /**
     * 停止循环时间
     */
    private Date endTime;

    /**
     * 周期类型，字典
     */
    private String cycleType;

    /**
     * 当前循环次数，默认1
     */
    private Integer cycleCount;

    /**
     * 是否删除，0：未删除 1：已删除
     */
    private Integer delFlag;

    /**
     * 版本
     */
    private Long version;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public String getTimeType() {
        return timeType;
    }

    public void setTimeType(String timeType) {
        this.timeType = timeType == null ? null : timeType.trim();
    }

    public Long getTaskTime() {
        return taskTime;
    }

    public void setTaskTime(Long taskTime) {
        this.taskTime = taskTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCycleType() {
        return cycleType;
    }

    public void setCycleType(String cycleType) {
        this.cycleType = cycleType == null ? null : cycleType.trim();
    }

    public Integer getCycleCount() {
        return cycleCount;
    }

    public void setCycleCount(Integer cycleCount) {
        this.cycleCount = cycleCount;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", taskId=").append(taskId);
        sb.append(", timeType=").append(timeType);
        sb.append(", taskTime=").append(taskTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", cycleType=").append(cycleType);
        sb.append(", cycleCount=").append(cycleCount);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", version=").append(version);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}